package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author scw
 * @date 2020/11/4
 */
public enum PayExceptionEnum implements IResponseEnum {
    /**
     * 支付异常
     */
    WXPAY_NOTIFY_ERROR(500, "微信回调异常"),
    CHECK_SIGN_ERROR(500, "签名验证失败"),
    PAY_CHANNEL_ERROR(500, "支付类型错误"),
    WX_PAY_POST_ERROR(500, "微信请求失败");
    private Integer code;
    private String message;

    PayExceptionEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
